package com.ygl.consumer.config;

import com.ygl.consumer.controller.FeignRequestInterceptor;
import feign.Logger;
import feign.RequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author yanggld
 * @Date 2020/12/21-14:28
 */
@Configuration
public class FeignConfiguration {

    @Bean
    public Logger.Level level(){
        return Logger.Level.FULL;
    }

    @Bean
    public RequestInterceptor feignRequestInterceptor(){
        return new FeignRequestInterceptor();
    }

}
